pat_demographics.aspx.cs
Code Type: C# Codebehind Class for ASP .NET Page
Uses Classes: CStat, CPatientDemographics, List<string>


Lines of Code: 391

protected void Page_Init(object sender, EventArgs e)

	Initialize controls in the page 

protected void Page_Load(object sender, EventArgs e)

	Pulls and display patient demographics from central database 

protected void LoadStaticData()

    Load static data to populate dropdowns and other controls for the user to select values
  
protected void LoadPatientDemographics()

	 Loads demographics tab with patient's demographic data from central database 

protected void LoadPatientSocioeconomics()

	  Loads socioeconomics tab with patient's socioeconomics data from central database 

protected string GetPatientRaceList()

	Builds and returns a comma separated string with the patient's race selection values 

protected string GetPatientEthnicity()

	Builds and returns a string with the selected patient's ethnicity value 

protected void SetComboBoxValue(Ext.Net.ComboBox cbo, string strValue)

	Helper method for selecting an Ext.NET combobox item with the passed on value parameter 

protected void SetCheckboxGroupValues(Ext.Net.CheckboxGroup chk, string strValues)

	Helper method for selecting an Ext.NET checkbox group item with the passed on value parameter 

protected void HtmlDecodeCombo(Ext.Net.ComboBox cbo)

	Helper method to decode html characters in comboboxes options' values and texts 

protected void HtmlDecodeCheckboxGroup(Ext.Net.CheckboxGroup chkg)

	Helper method to decode html characters in checkbox group items' values and texts 

public void UpdatePatientDemographics()

	Collects the page data and submits the calls to the stored procedures that update patient demographics and socioeconomics 

protected void UpdatePatientRace()

	Submits patient's race selected values to the stored procedures that updates the race table 

protected void UpdatePatientEthnicity() {
        long lPatientEthnicityID = 0;

	Submits patient's ethnicity selected value to the stored procedures that updates the race table 

protected bool ValidatePatientDemographics(out string strValidationFeedback)

	Validates the Demographics and Socioeconomic submited data 

protected bool ValidateDemographicsData(out string strMessage)

	 Validates the data entered in the demographics tab 

protected bool ValidateSocioeconomicData(out string strMessage)

	Validates the data entered in the socioeconomic tab 

public bool IsValidEmail(string strEmail)

	Validates an EMAIL address 

protected bool IsValidDOB(string strDOB, out string strError)

	Validates the Date of Birth 

protected string TransformErrorMessage(List<string> lstErrors)

	Transforms the error list (List<string>) into an HTML UL string to be displayed in the System Feedbacks window 

	